<?php
/*
 * Smarty plugin
 * ------------------------------------------
 * File: modifier.ytuid.php
 * Type: modifier
 * Name: ytuid
 * Purpose: convert uid to yt + 0 + uid, the count of 0 plus uid must be 4
 * $Id: modifier.ytuid.php 165 2011-10-16 04:02:25Z leikou@163.com $
 * ------------------------------------------
 */

/**
 * Convert uid to yt + 0 + uid, the count of 0 plus uid must be 4
 *
 * @param mixed $value
 */
function smarty_modifier_ytuid($value)
{
    return 'yt' . str_pad($value, 4, '0', STR_PAD_LEFT);
}


/* End of file: modifier.ytuid.php */
/* Location: ./application/views/plugins/modifier.ytuid.php */
